﻿using System.ComponentModel;

namespace Zhp.IService.Message.Email.VariableClass
{
    [DisplayName("测试邮件模板")]
    public class TestEmail : IEmailVariable
    {
        [DisplayName("收件人名称")]
        public string ToUserName { get; set; }

        [DisplayName("收件邮箱")]
        public string ToEmail { get; set; }

        [DisplayName("日期")]
        public string Date {  get; set; }

        [DisplayName("用户列表")]
        public List<UserInfo> UserList { get; set; }

        [DisplayName("学生列表")]
        public List<StudentInfo> StudentList { get; set; }
    }

    public class UserInfo
    {
        [DisplayName("姓名")]
        public string UserName { get; set; }
        [DisplayName("生日")]
        public string Birthday { get; set; }
    }

    public class StudentInfo
    {
        [DisplayName("姓名")]
        public string Name { get; set; }
        [DisplayName("分数")]
        public int Score { get; set; }
    }

    [DisplayName("测试邮件列表模板")]
    public class TestEmailList : IEmailVariable
    {
        [DisplayName("收件人名称1")]
        public string ToUserName { get; set; }

        [DisplayName("收件邮箱1")]
        public string ToEmail { get; set; }

        [DisplayName("日期1")]
        public string Date { get; set; }
    }
}
